{% extends "base.html" %}

{% block title %}我们对{{ look_teacher.name }}的评论{% endblock %}

{% block content %}
<div class="container">
	<br/>
	<h1>论我们怎么论{{ look_teacher.name }}老师</h1>
	{% for comment in comment_now %}
    <hr/>
	{% if not comment.comment == 'None' %}
	<h5>{{ comment.grader.username }}[{{ comment.grader.student }}</h5>
    <p class="text-info">智商评分：{{ comment.iq }}/10  情商评分：{{ comment.eq }}/10  教学水平评分：{{ comment.relation }}/10</p>
	<p>{{ comment.comment|linebreaksbr }}</p>
	{% endif %}
    {% endfor %}
</div>
{% if total >= 2 %}
<div>
    <ul class="pagination">
        {% if pre %}
        <li class="page-item">
            <a class="page-link" href="{% url 'teacher:comment' look_teacher.seat_number num_pre %}">&laquo;</a>
        </li>
        {% else %}
        <li class="page-item disabled">
            <a class="page-link" href="#">&laquo;</a>
        </li>
        {% endif %}
        <span class="current">第 {{ now }} 页 / 共 {{ total }} 页</span>
        {% if next %}
        <li class="page-item">
            <a class="page-link" href="{% url 'teacher:comment' look_teacher.seat_number num_next %}">&raquo;</a>
        </li>
        {% else %}
        <li class="page-item disabled">
            <a class="page-link" href="#">&raquo;</a>
        </li>
        {% endif %}
    </ul>
</div>
{% endif %}
{% endblock %}